{extend name='layout' /}
{block name="content"}
<div class="col-sm-8 blog-main">
    <form action="/posts/{$post_info.id}/edit" method="POST">
        <input type="hidden" name="_method" value="PUT">
        <input type="hidden" name="__token__" value="{$Request.token}">
        <div class="form-group">
            <label>标题</label>
            <input name="title" type="text" class="form-control" placeholder="这里是标题" value="{$post_info.title}">
        </div>
        <div class="form-group">
            <label>内容</label>
            <textarea id="content" name="content" class="form-control" style="height:400px;max-height:500px;"
                      placeholder="这里是内容">{$post_info.content}</textarea>
        </div>
        <button type="submit" class="btn btn-default">提交</button>
    </form>
    <br>
</div><!-- /.blog-main -->
{/block}